home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 121
/
FreelogMagazineJuilletAout2014-No121.iso
/
Outils
/
Adobe-Air
/
adobe-air_13.exe
/
[0]
/
setup.swf
/
scripts
/
_ScrollBarStyle.as
< prev
next >
Wrap
Text File
|
2014-03-27
|
1KB
|
49 lines
package
{
import mx.core.IFlexModuleFactory;
import mx.skins.halo.ScrollArrowSkin;
import mx.skins.halo.ScrollThumbSkin;
import mx.skins.halo.ScrollTrackSkin;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
public class _ScrollBarStyle
{
public function _ScrollBarStyle()
{
super();
}
public static function init(param1:IFlexModuleFactory) : void
{
var fbs:IFlexModuleFactory = param1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ScrollBar");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ScrollBar",style,false);
}
if(style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.trackColors = [9738651,15198183];
this.thumbOffset = 0;
this.paddingTop = 0;
this.downArrowSkin = ScrollArrowSkin;
this.borderColor = 12040892;
this.paddingLeft = 0;
this.cornerRadius = 4;
this.paddingRight = 0;
this.trackSkin = ScrollTrackSkin;
this.thumbSkin = ScrollThumbSkin;
this.paddingBottom = 0;
this.upArrowSkin = ScrollArrowSkin;
};
}
}
}
}